package com.iss.view.order;

import com.iss.controller.OrderController;
import com.iss.view.view.Window;

import java.util.Scanner;

public class CheckOut extends Window {
    private OrderController controller=new OrderController();
    @Override
    public String print() {
        Scanner scanner = new Scanner(System.in);
        String roomNO="";
        System.out.println("离店处理：");
        System.out.println("请输入你的房间号码：");
        roomNO = scanner.next();
        CheckOutInfo.CHECKOUT_ORDER= controller.getOrder(roomNO);

        /*获取到房间号码后，直接跳转页面*/

        return "info";
    }

    @Override
    public Window getNextWindow(String cmd) {

        if(cmd.equals("info")){
            return  new CheckOutInfo();
        }
        return null;
    }
}
